#include "systemc.h"

SC_MODULE(gen) {
  sc_in<bool>  clk;
  sc_out<bool> rst_n;
  sc_out<int>  sample;
  sc_out<bool> sample_vld;

  sc_int<8>    send_value;
  unsigned     cycle;

  void entry();

  SC_CTOR(gen){
    SC_METHOD(entry);
    dont_initialize();
    sensitive << clk.pos();
    send_value = 0;
    cycle      = 0;
  }
};
